class allribaobiaobean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  allribaobiaobean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  allribaobiaobean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String lineName;
  double sd1;
  double sd2;
  double sd3;
  double sm1;
  double sm2;
  double sm3;
  double sy1;
  double sy2;
  double sy3;
  double sdgs;
  double smgs;
  double sygs;
  String remark;
  List<Lists> lists;

  Result(
      {this.lineName,
        this.sd1,
        this.sd2,
        this.sd3,
        this.sm1,
        this.sm2,
        this.sm3,
        this.sy1,
        this.sy2,
        this.sy3,
        this.sdgs,
        this.smgs,
        this.sygs,
        this.remark,
        this.lists});

  Result.fromJson(Map<String, dynamic> json) {
    lineName = json['lineName'];
    sd1 = json['sd1'];
    sd2 = json['sd2'];
    sd3 = json['sd3'];
    sm1 = json['sm1'];
    sm2 = json['sm2'];
    sm3 = json['sm3'];
    sy1 = json['sy1'];
    sy2 = json['sy2'];
    sy3 = json['sy3'];
    sdgs = json['sdgs'];
    smgs = json['smgs'];
    sygs = json['sygs'];
    if (json['remark'] != null) {
      remark = json['remark'];
    }else{
      remark = "";
    }
    if (json['lists'] != null) {
      lists = new List<Lists>();
      json['lists'].forEach((v) {
        lists.add(new Lists.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['lineName'] = this.lineName;
    data['sd1'] = this.sd1;
    data['sd2'] = this.sd2;
    data['sd3'] = this.sd3;
    data['sm1'] = this.sm1;
    data['sm2'] = this.sm2;
    data['sm3'] = this.sm3;
    data['sy1'] = this.sy1;
    data['sy2'] = this.sy2;
    data['sy3'] = this.sy3;
    data['sdgs'] = this.sdgs;
    data['smgs'] = this.smgs;
    data['sygs'] = this.sygs;
    data['remark'] = this.remark;
    if (this.lists != null) {
      data['lists'] = this.lists.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Lists {
  String userNumber;
  String company;
  double lastAccumulation;
  double accumulation;
  double beforeSettlementAmount;
  double settlementAmount;
  double rateChange;
  String remark;

  Lists(
      {this.userNumber,
        this.company,
        this.lastAccumulation,
        this.accumulation,
        this.beforeSettlementAmount,
        this.settlementAmount,
        this.rateChange,
        this.remark});

  Lists.fromJson(Map<String, dynamic> json) {
    userNumber = json['userNumber'];
    company = json['company'];
    lastAccumulation = json['lastAccumulation'];
    accumulation = json['accumulation'];
    beforeSettlementAmount = json['beforeSettlementAmount'];
    settlementAmount = json['settlementAmount'];
    rateChange = json['rateChange'];
    remark = json['remark'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userNumber'] = this.userNumber;
    data['company'] = this.company;
    data['lastAccumulation'] = this.lastAccumulation;
    data['accumulation'] = this.accumulation;
    data['beforeSettlementAmount'] = this.beforeSettlementAmount;
    data['settlementAmount'] = this.settlementAmount;
    data['rateChange'] = this.rateChange;
    data['remark'] = this.remark;
    return data;
  }
}
